package com.hspedu.homework.homework5;

public class Homework05 {
    public static void main(String[] args) {
        //科学家
        Scientist sci = new Scientist("大龙","科学家",280,10000);
        sci.printInfo();

        Peasant peasant = new Peasant("小龙", "农民", 120);
        peasant.printInfo();

        Teacher teacher = new Teacher("小张", "老师", 150, 180, 30);
        teacher.printInfo();

        Worker worker = new Worker("小宋", "工人", 300);
        worker.printInfo();

        Waiter waiter = new Waiter("小吴", "服务生", 180);
        waiter.printInfo();
    }
}
